import request from '@/utils/request'

// 查询AI模型管理列表
export function listAiModel(query) {
  return request({
    url: '/ry/aiModel/aiModel/list',
    method: 'get',
    params: query
  })
}

// 查询AI模型管理详细
export function getAiModel(id) {
  return request({
    url: '/ry/aiModel/aiModel/' + id,
    method: 'get'
  })
}

// 新增AI模型管理
export function addAiModel(data) {
  return request({
    url: '/ry/aiModel/aiModel',
    method: 'post',
    data: data
  })
}

// 修改AI模型管理
export function updateAiModel(data) {
  return request({
    url: '/ry/aiModel/aiModel',
    method: 'put',
    data: data
  })
}

// 删除AI模型管理
export function delAiModel(id) {
  return request({
    url: '/ry/aiModel/aiModel/' + id,
    method: 'delete'
  })
}
